import React from "react";
// 引入less
import Prompt from "./prompt.module.less";

export default class PagePrompt extends React.Component {
  constructor() {
    super();
    this.state = {};
  }

  render() {
    return (
      <div className={Prompt.main}>
        <div className={Prompt.cover} onClick={(e)=>{e.stopPropagation()}}></div>
        <div className={Prompt.pop}>
          <div className={Prompt.title}>{this.props.title}</div>
          <div className={Prompt.txt}>{this.props.txt}</div>
          <div className={Prompt.btn}>
            <div>取消</div>
            <div>确定</div>
          </div>
        </div>
      </div>
    );
  }
}
